package com.zs4sdk.activity.login;

import android.app.Activity;
import android.view.View;

/**
 * Created by Administrator on 2018/5/29.
 */

public class Zs4GameSelectLoginProxyFt extends Zs4GameSelectLoginProxy {
    public Zs4GameSelectLoginProxyFt(Activity act, View v) {
        super(act, v);
    }
    protected void init(){
        mZs4GameOtherAccountLogin = new Zs4GameLoginAccountFt(mActivity,mMainView,myHandle);
        mZs4GameOtherAccountLogin.setOnClickListener(this);
    }

    protected void doStartByPhone(){
        linSelectLoginLayout.setVisibility(View.GONE);
        imgZs4GameBack.setVisibility(View.VISIBLE);
        mZs4GameOtherAccountLogin.showLogin();
        loginStyle = PHONE_LOGIN;
    }
    public void onBackPressed(){
        switch (loginStyle){
            case TOURIST_LOGIN:
                break;

            case PHONE_LOGIN:
                linSelectLoginLayout.setVisibility(View.VISIBLE);
                imgZs4GameBack.setVisibility(View.GONE);
                mZs4GameOtherAccountLogin.hideLogin();
                loginStyle = TOURIST_LOGIN;
                break;
        }
    }
}
